<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>购物车</title>
    <link rel="stylesheet" href="/css/reset.css">
    <link rel="stylesheet" href="/css/cart.css">
</head>

<body>
    <header></header>
    <div class="mycart">
        <div class="mycart_bt">
            <img src="/images/cart.gif" alt="">
            <h1>我的购物车</h1>
        </div>
        <table class="mycart_list">
            <thead>
                <tr>
                    <th style="width: 134px;">
                        <span class="check checkAll active"></span>
                    </th>
                    <th style="width: 134px;">&nbsp;</th>
                    <th style="width: 296px;">商品名称</th>
                    <th style="width: 180px;
                        position: relative; ">属性</th>
                    <th style="width: 110px;">价格</th>
                    <th style="width: 260px;">购买数量</th>
                    <th style="width: 110px;">小计</th>
                    <th style="width: 110px;">操作</th>
                </tr>
            </thead>
            <tbody>
                
            </tbody>
        </table>
        <script type="text/html" id="cartTemplate">
            {{each list item}}
            <tr prodId={{item.id}}>
                <td>
                    <span class="check {{item.checked  ? 'active' : ''}}"></span>
                </td>
                <td><img src="{{item.image}}" alt=""></td>
                <td>{{item.title}}</td>
                <td class="td1">1套
                    <!-- <span>含4盘4叉</span> -->
                </td>
                <td>￥{{item.price}}</td>
                <td>
                    <div class="tb_jian">
                        <span href=""></span>
                    </div>
                    <div class="tb_count">
                        <input type="text" value="{{item.count}}">
                    </div>
                    <div class="tb_jia">
                        <span href=""></span>
                    </div>
                </td>
                <td>￥<b>{{(item.price * item.count).toFixed(2)}}</b>
                </td>
                <td class='del'>删除</td>
            </tr>
            {{/each}}
        </script>
     

        <form action="">
            <div class="jiesuan">
                <p>(共<span id="sum_count">0</span>件) 商品总计：<span>￥<b id="sum_price">4.00</b></span></p>
            </div>
        </form>
        <div class="cart_btn">
            <div class="btn_js"><a href="">去结算</a></div>
            <div class="btn_shop"><a href="">继续购物</a></div>
        </div>
    </div>
    <footer id="footer">
      
    </footer>
    <script src="/lib/require/require.js" data-main='/js/cart'></script>
</body>

</html>